package org.example.Day13;


import java.util.Arrays;

public class Test {
    public static void main(String[] args)throws Exception{
        //创建用户业务
        UserService userService = ProxyUtil.createProxy(new UserServiceImpl());

        //调用业务能力
        userService.login("admin","123456");
        System.out.println("--------------------");

        userService.deleteUsers();
        System.out.println("----------------------");

        String[] names = userService.selectUsers();
        System.out.println("查询到的用户是:"+ Arrays.toString(names));

        System.out.println("---------------------");
    }
}
